package com.lantian.uavmaterial.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lantian.uavmaterial.mapper.UavAirframeConstructionMapper;
import com.lantian.uavmaterial.domain.UavAirframeConstruction;
import com.lantian.uavmaterial.service.IUavAirframeConstructionService;

/**
 * 机身结构Service业务层处理
 * 
 * @author lantian
 * @date 2025-11-06
 */
@Service
public class UavAirframeConstructionServiceImpl implements IUavAirframeConstructionService 
{
    @Autowired
    private UavAirframeConstructionMapper uavAirframeConstructionMapper;

    /**
     * 查询机身结构
     * 
     * @param airframeStructureId 机身结构主键
     * @return 机身结构
     */
    @Override
    public UavAirframeConstruction selectUavAirframeConstructionByAirframeStructureId(String airframeStructureId)
    {
        return uavAirframeConstructionMapper.selectUavAirframeConstructionByAirframeStructureId(airframeStructureId);
    }

    /**
     * 查询机身结构列表
     * 
     * @param uavAirframeConstruction 机身结构
     * @return 机身结构
     */
    @Override
    public List<UavAirframeConstruction> selectUavAirframeConstructionList(UavAirframeConstruction uavAirframeConstruction)
    {
        return uavAirframeConstructionMapper.selectUavAirframeConstructionList(uavAirframeConstruction);
    }

    /**
     * 新增机身结构
     * 
     * @param uavAirframeConstruction 机身结构
     * @return 结果
     */
    @Override
    public int insertUavAirframeConstruction(UavAirframeConstruction uavAirframeConstruction)
    {
        return uavAirframeConstructionMapper.insertUavAirframeConstruction(uavAirframeConstruction);
    }

    /**
     * 修改机身结构
     * 
     * @param uavAirframeConstruction 机身结构
     * @return 结果
     */
    @Override
    public int updateUavAirframeConstruction(UavAirframeConstruction uavAirframeConstruction)
    {
        return uavAirframeConstructionMapper.updateUavAirframeConstruction(uavAirframeConstruction);
    }

    /**
     * 批量删除机身结构
     * 
     * @param airframeStructureIds 需要删除的机身结构主键
     * @return 结果
     */
    @Override
    public int deleteUavAirframeConstructionByAirframeStructureIds(String[] airframeStructureIds)
    {
        return uavAirframeConstructionMapper.deleteUavAirframeConstructionByAirframeStructureIds(airframeStructureIds);
    }

    /**
     * 删除机身结构信息
     * 
     * @param airframeStructureId 机身结构主键
     * @return 结果
     */
    @Override
    public int deleteUavAirframeConstructionByAirframeStructureId(String airframeStructureId)
    {
        return uavAirframeConstructionMapper.deleteUavAirframeConstructionByAirframeStructureId(airframeStructureId);
    }

    @Override
    public UavAirframeConstruction selectUavAirframeConstructionByUavId(String uavId) {
        return uavAirframeConstructionMapper.selectUavAirframeConstructionByUavId(uavId);
    }
}
